#include <TFT_eSPI.h>
//#include "pic.h"
#include "Connect.h"
//#include "As.h"
#define BLK 5
int i = 0;

TFT_eSPI tft = TFT_eSPI();

void setup()
{
  pinMode(BLK, OUTPUT);
  tft.init();                //初始化
  tft.fillScreen(TFT_BLACK); //屏幕颜色
}

void loop()
{
  analogWrite(BLK, 150);
  tft.setSwapBytes(true); //使图片颜色由RGB->BGR
  tft.pushImage(10, 20, 64, 64, ConnectWifi[i]);
  delay(100); 
  i += 1;
  if(i>5)
  {
    i=0;
  }
}